import request from '/@/utils/request'
import {prefix} from '/@/api/oa'

export function getStaffLanguageList(params: object) {
    return request({
        url: prefix + '/staffLanguage/getStaffLanguageList',
        method: 'get',
        params
    })
}

export function createLanguage(data: object) {
    return request({
        url: prefix + '/staffLanguage/create',
        method: 'post',
        data
    })
}

export function editLanguage(data: object) {
    return request({
        url: prefix + '/staffLanguage/edit',
        method: 'post',
        data
    })
}

export function removeLanguage(data: object) {
    return request({
        url: prefix + '/staffLanguage/delete',
        method: 'post',
        data
    })
}